service check-config
Syntax
[ no ] service check-config [ auto | fileName fileName | running-configuration | running-configuration recover | auto-recover ]
Release Information
Command introduced in JunosE Release 9.3.0.
auto-recover keyword added in
JunosE Release 10.3.0.
Description
Detects corruption of running configuration on both primary and standby SRP due to fatal duplicate key error. In addition, the command detects corruption of CNF files on the primary SRP for invalid CFG types and invalid information. If the Cyclic Redundancy Check (CRC) value is set for a configuration file, this command calculates and validates the CRC value to ensure that there are no data errors. If the configuration file has errors, the command creates a system log identifying the error.
The no version restores the default action, manual detection.
![]() | Note: You cannot monitor CNF files on the standby SRP. |
Options
- auto—Checks the running configuration at regular intervals; cannot be used for CNF files. When auto mode is enabled, if you check the running configuration for corruption manually, a warning message appears. If you confirm you want to check the running configuration in manual mode or ignore the warning message, then manual mode is enabled.
- fileName—Name of an existing configuration file (.cnf) that needs to be validated for corruption
- running–configuration—Specifies that the running configuration needs to be validated for corruption; displays a list of corrupt files in the running configuration and the files that are recoverable on the primary SRP and the standby SRP.
- running-configuration recover—Recovers the corrupted
configuration files in the running configuration

Note: You can recover only the files that the service check-config running-configuration command output lists as recoverable.
- auto-recover—Specifies that the running configuration
needs to be validated for corruption and the corrupted files need
to be recovered; enables auto-recovery of files in the running configuration
that are corrupted due to a fatal duplicate key error or the existence
of values such as 0XFF and 0x00 in sectors of a Flash

Note: You cannot auto-recover CNF files on the primary and standby SRPs.
Mode
Global Configuration
Hide Navigation Pane
Show Navigation Pane
SHA1